home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 2.toast / pc / sample code / quicktime / basics / moviegworlds / movieproc.h < prev    next >
Encoding:
Text File  |  2000-09-28  |  1.4 KB  |  47 lines

  1. /*
  2.     File:        MovieProc.h
  3.  
  4.     Contains:    
  5.  
  6.     Written by:     
  7.  
  8.     Copyright:    Copyright © 1999 by Apple Computer, Inc., All Rights Reserved.
  9.  
  10.                 You may incorporate this Apple sample source code into your program(s) without
  11.                 restriction. This Apple sample source code has been provided "AS IS" and the
  12.                 responsibility for its operation is yours. You are not permitted to redistribute
  13.                 this Apple sample source code as "Apple sample source code" after having made
  14.                 changes. If you're going to re-distribute the source, we require that you make
  15.                 it clear in the source that the code was descended from Apple sample source
  16.                 code, but that you've made changes.
  17.  
  18.     Change History (most recent first):
  19.                 8/17/1999    Karl Groethe    Updated for Metrowerks Codewarror Pro 2.1
  20.                 
  21.  
  22. */// MovieGWorlds
  23.  
  24. #include "DTSQTUtilities.h"
  25.  
  26.  
  27. // DEFINES
  28. #define DEBUG true
  29.  
  30. const short kWindowHeigth = 300;const short kWindowLength = 600;
  31. const short kWindowXStart = 20; const short kWindowYStart = 40;
  32. const short kDrawTextX = 350;     const short kDrawTextY = 50;
  33. const short kDrawValuesX = 500; const short kDrawValuesY = 50;
  34.  
  35.  
  36.  
  37. // FUNCTION PROTOTYPES
  38. void             InitMacEnvironment(long nMasters);
  39. void             InitializeQTEnvironment(void);
  40. OSErr             InitializeMovie(void);
  41.  
  42. pascal OSErr    MyQTMovieDrawingCompleteProc(Movie theMovie, long refCon);
  43.  
  44. void             DrawFpsStats(long tickCount);
  45. void            DrawMovieFpsStats(void);
  46. void             DrawUsageInformation(void);
  47. void            DrawPercentageValues(void);